package com.ruoyi.bom.service.impl;

import com.ruoyi.bom.domain.TqlShopFoodCategory;
import com.ruoyi.bom.mapper.TqlFoodCategoryMapper;
import com.ruoyi.bom.service.TqlFoodCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Jzh
 * @Date: 2024-01-20  21:25
 */
@Service
public class TqlFoodCategoryServiceImpl implements TqlFoodCategoryService {
    @Autowired
    private TqlFoodCategoryMapper tqlFoodCategoryMapper;
    @Override
    public List<TqlShopFoodCategory> selectFoodCategoryList(TqlShopFoodCategory tqlFood) {
        return tqlFoodCategoryMapper.selectFoodCategoryList(tqlFood);
    }

    @Override
    public int updateFlag(TqlShopFoodCategory tqlFood) {
        return tqlFoodCategoryMapper.updateFlag(tqlFood);
    }

    @Override
    public int importFoodCategory(String shopId) {
        int a = tqlFoodCategoryMapper.importFoodCategory(shopId);
        return a;
    }
}
